
<include file="Public:header"/><body class="J_scroll_fixed">
<style type="text/css">
<!--
.m-dc{float:right; margin-top:0px; margin-right:5px; padding:6px 15px; color:#ffffff; background: #266aae; border-radius:3px; cursor:pointer;}
.g-he{position:absolute; width:300px; height:150px; z-index:9999999; border:1px solid #266aae; background-color:#FFFFFF;border-radius:5px; top:150px; right:450px; display:none;}
.g-tit{background-color:#266aae; height:30px;}
.g-tit span{color:#FFFFFF; line-height:30px; padding:0 10px;}
.g-di{padding:15px}
.aui_state_highlightes {
    color: #FFF;
    border: solid 1px #1c6a9e;
    background: #2288cc;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc');
    background: linear-gradient(top, #33bbee, #2288cc);
    background: -moz-linear-gradient(top, #33bbee, #2288cc);
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc));
    text-shadow: -1px -1px 1px #1c6a9e;
	padding:5px 12px;
}
-->
</style>
<if condition=" $_GET['menuid'] eq 02 ">
	<div class="g-he">
		<div class="g-tit"><span class="g-ci">批量导入数据</span> <span style="float:right; cursor:pointer" onClick="cole();">关闭</span></div>
		<div class="g-di">
			<ul>
			<form action="{:U('excelUploads')}" method="post" enctype="multipart/form-data">
			   <li style="padding-top:5px;"> <input type="file" name="import">
				<input type="hidden" name="table" value="tablename"></li>
				
				<li style="text-align:center; padding-top:18px;"><input class="aui_state_highlightes" type="submit" value="确 定"></li>
			</form>
			</li>
		</div>
	</div>
</if>
<div class="wrap J_check_wrap">
   <div class="nav">
        <ul class="cc">
            <li <if condition=" $_GET['menuid'] eq 21 ">class="current"</if>><a href="{:U('index',array('menuid'=>21))}">会员列表</a></li>
            <li <if condition=" $_GET['menuid'] eq 02 ">class="current"</if>><a href="{:U('index',array('menuid'=>02))}">水军列表</a></li>
        </ul>
    </div>
    <div class="h_a">搜索</div>
    <form method="post" action="{:U('index')}">
		<input type="hidden" name="menuid" value="{:I('menuid')}">
        <input type="hidden" value="1" name="search">
        <div class="search_type cc mb10">
            <div class="mb10">
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
        <select class="select_2" name="status" style="width:70px;">
            <option value='2' <if condition=" $status == 2 "> selected</if>>全部</option>
            <option value="1" <if condition=" $status == 1 "> selected</if>>已通过</option>
            <option value="0" <if condition=" $status == 0 "> selected</if>>未通过</option>
        </select>
        <select class="select_2" name="ifrz" style="width:70px;">
            <option value='4' <if condition=" $ifrz == 4 "> selected</if>>全部</option>
            <option value="0" <if condition=" $ifrz == 0 "> selected</if>>未认证</option>
            <option value="1" <if condition=" $ifrz == 1 "> selected</if>>已认证</option>
            <option value="2" <if condition=" $ifrz == 2 "> selected</if>>未通过</option>
            <option value="3" <if condition=" $ifrz == 3 "> selected</if>>已申请</option>
        </select>
        <select class="select_2" name="searchtype">
            <option value='0' <if condition=" $searchtype == '0' "> selected</if>>昵称</option>
            <option value='1' <if condition=" $searchtype == '1' "> selected</if>>手机号</option>
            <option value='2' <if condition=" $searchtype == '2' "> selected</if>>邮箱</option>
        </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
				<if condition=" $_GET['menuid'] eq 21 "> <div class="m-dc onGoto">导出数据</div> </if>
				<if condition=" $_GET['menuid'] eq 02 "> <div class="m-dc onlm">导入数据</div> </if>
				<div style="clear:both;"></div>
            </div>
			
        </div>
    </form>
    <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                <td width="5%">通过</td>
                <td width="5%">认证</td>
                <td width="12%" align="left" >昵称</td>
                <td width="18%" align="left" >邮箱</td>
                <td width="12%" align="left" >手机</td>
                <td width="15%" align="left" >注册时间</td>
                <td width="15%" align="left" >登录时间</td>
                <td width="">管理操作</td>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.userid}"></td>
                    <td>{$vo.status|showStatus}</td>
                    <td>{$vo.ifrz|showIfrz}</td>
                    <td><a href="#" onClick="omnipotent('selectid','{:U("User/edit",array("userid"=>$vo[userid]))}','{$vo.uname}的详细资料',1,600)">{$vo.nickname}</a><if condition="$vo.ifrequest eq 1 && $vo.ifrz eq 0"><font color="#ff0000">(申)</font></if></td>
                    <td>{$vo.uemail}</td>
                    <td>{$vo.umobile}</td>
                    <td>{$vo.create_time|date='Y-m-d H:i',###}</td>
                    <td>{$vo.login_time|date='Y-m-d H:i',###}</td>
                    <td><a href="#" onClick="omnipotent('selectid','{:U("User/edit",array("userid"=>$vo[userid]))}','{$vo.uname}的详细资料',1,600)">修改</a> | <a class="J_ajax_del" data-msg="确定删除该会员所有信息吗?" href="{:U('User/delete',array('userid'=>$vo['userid']))}">删除</a> |
                        <a href="/u/{$vo.openuid}" target="_blank">查看详情</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="p10">
            <div class="pages"> {$Page} </div>
        </div>
    </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('User/batch',array('do'=>'checkpass'))}">通过审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('User/batch',array('do'=>'cancelpass'))}">不通过审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-msg="确认删除该会员的所有信息?" data-subcheck="true" data-action="{:U('User/deleteAll')}">删除</button>
            </div>
        </div>
    </form>
</div>



<script src="__JS__/common.js"></script>
<script src="__JS__/content_addtop.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".onGoto").click(function(){
     window.open("{:U('userexcel')}");
  });
  $(".onlm").click(function(){
  	 $(".g-he").show();
  });
});
function cole(){
	$(".g-he").hide();
}
</script>
</body>
</html>